package com.basis.anonymousclass;

/**
 * java:使用匿名类直接new接口
 */
public class AnonymousClassTest {
    public static void main(String[] args){
        ISay say = new ISay() {
            @Override
            public void sayHello() {
                System.out.println("Hello Interface");
            }
        };
        say.sayHello();
    }
}
